package com.lanbu.system.service.impl;

import java.util.List;
import com.lanbu.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.lanbu.system.mapper.ZntStepScoreMapper;
import com.lanbu.system.domain.ZntStepScore;
import com.lanbu.system.service.IZntStepScoreService;

/**
 * 操作步骤得分Service业务层处理
 *
 * @author lanbu
 * @date 2025-04-24
 */
@Service
public class ZntStepScoreServiceImpl implements IZntStepScoreService
{
    @Autowired
    private ZntStepScoreMapper zntStepScoreMapper;

    @Override
    public ZntStepScore selectZntStepScoreById(Long id)
    {
        return zntStepScoreMapper.selectZntStepScoreById(id);
    }

    @Override
    public List<ZntStepScore> selectZntStepScoreList(ZntStepScore zntStepScore)
    {
        return zntStepScoreMapper.selectZntStepScoreList(zntStepScore);
    }

    @Override
    public int insertZntStepScore(ZntStepScore zntStepScore)
    {
        zntStepScore.setCreateTime(DateUtils.getNowDate());
        return zntStepScoreMapper.insertZntStepScore(zntStepScore);
    }

    @Override
    public int updateZntStepScore(ZntStepScore zntStepScore)
    {
        zntStepScore.setUpdateTime(DateUtils.getNowDate());
        return zntStepScoreMapper.updateZntStepScore(zntStepScore);
    }

    @Override
    public int deleteZntStepScoreByIds(Long[] ids)
    {
        return zntStepScoreMapper.deleteZntStepScoreByIds(ids);
    }

    @Override
    public int deleteZntStepScoreById(Long id)
    {
        return zntStepScoreMapper.deleteZntStepScoreById(id);
    }
}
